#ifndef DRULE_H
#define DRULE_H

#include <QDialog>

namespace Ui {
    class DRule;
}

class DRule : public QDialog
{
    Q_OBJECT

public:
    explicit DRule(QWidget *parent = 0); // new
    explicit DRule(const QString & name, //edit
                   const QString & regexp,
                   const QString & path,
                   QWidget *parent = 0);
    ~DRule();
    QStringList getRule();

protected:
    void changeEvent(QEvent *e);

private:
    Ui::DRule *ui;
private slots:
    void slotPreaccept();
    void slotPath();
};

#endif // DRULE_H
